﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace SqlBuilder
{
    public class ColumnContrast: INotifyPropertyChanged
    {
        private string targetColumn = string.Empty;
        public string TargetColumn
        {
            get { return targetColumn; }
            set { targetColumn = value; OnPropertyChanged(); }
        }
        private string targetComment = string.Empty;
        public string TargetComment
        {
            get { return targetComment; }
            set { targetComment = value; OnPropertyChanged(); }
        }
        private string? tableName ;
        public string? TableName
        {
            get { return tableName; }
            set { tableName = value; OnPropertyChanged(); }
        }
        private Column? sourceColumn;
        public Column? SourceColumn
        {
            get { return sourceColumn; }
            set { sourceColumn = value; OnPropertyChanged(); }
        }

        public event PropertyChangedEventHandler? PropertyChanged;
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
    }
}
